home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18259 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  596 b 

  1. Path: mn5.swip.net!news
  2. From: info@koncita.se (Michael Thunberg)
  3. Newsgroups: comp.lang.c++
  4. Subject: Derived constructors
  5. Date: Fri, 19 Apr 1996 16:47:03 GMT
  6. Organization: -
  7. Message-ID: <4l8g4t$4si@mn5.swip.net>
  8. NNTP-Posting-Host: dialup108-4-7.swipnet.se
  9. NNTP-Posting-User: 4316bb40ebeaa300afe15a174ee6b02f
  10. X-Newsreader: Forte Agent .99c/32.126
  11.  
  12. When you derive a class, is it possible to use the parents constructor
  13. instead of making a new one?
  14.  
  15. E.g:
  16.  
  17. class CTest : public CDialog
  18. {
  19.  ...
  20. }
  21.  
  22. class CTemp : public CTest
  23. {
  24.  ...
  25. }
  26.  
  27. and then initialize CTemp using the CTest somehow....
  28.  
  29. // Michael
  30.  
  31.